import request from '@/utils/request'

// 查询理论题列表
export function listQuestionLl(query) {
	return request({
		url: '/admin/questionLl/list',
		method: 'get',
		params: query
	})
}

// 查询理论题
export function selectQuestionLl(id) {
	return request({
		url: '/admin/questionLl/' + id,
		method: 'get'
	})
}
// 插入理论题
export function insertQuestionLl(data) {
	return request({
		url: '/admin/questionLl',
		method: 'post',
		data: data
	})
}

// 修改理论题
export function updateQuestionLl(data) {
	return request({
		url: '/admin/questionLl',
		method: 'put',
		data: data
	})
}
// 修改状态
export function changeStatus(data) {
	return request({
		url: '/admin/questionLl/statusReverse',
		method: 'post',
		data: data
	})
}
// 删除理论题
export function deleteQuestionLl(id) {
	return request({
		url: '/admin/questionLl/' + id,
		method: 'delete'
	})
}

